﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="JWBSTAPP.TbBstDirectorLetterManagement"
    CodeBehind="TbBstDirectorLetterManagement.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>管理</title>
    <script src="../Scripts/jQuery-1.9.0.js" type="text/javascript"></script>
    <script src="../Scripts/thickbox.js" type="text/javascript"></script>
    <script src="../Scripts/CommonADEQ3.js" type="text/javascript"></script>
    <link href="../Styles/thickbox.css" type="text/css" rel="Stylesheet" />
    <link href="../Styles/Management.css" type="text/css" rel="Stylesheet" />
     <link href ="../Styles/jquery.resizableColumns.css" type="text/css" rel="Stylesheet" />
    <script src ="../Scripts/jquery.resizableColumns.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/alert/ymPrompt.js"></script>
    <link rel="stylesheet" type="text/css" href="../Scripts/alert/skin/qq/ymPrompt.css" />
    <script src="../TreeAndGridDemo/Time_js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">

        $().ready(function () {
            var ashxParam = { url: "../AjaxServer/Application/TbBstDirectorLetterHandler.ashx", pageSize: "15" };
            var addPage = { title: "新增信息", url: "../Application/TbBstDirectorLetterAdd.aspx", width: "800", height: "400" };
            var editPage = { title: "修改信息", url: "../Application/TbBstDirectorLetterEdit.aspx", width: "800", height: "400" };
            var detailPage = { title: "详细信息", url: "../Application/TbBstDirectorLetterDetail.aspx", width: "800", height: "400" };
            var columnInfo = [{ "columnName": "LSH", "columnText": "流水号", "width": "10%" },{ "columnName": "CONTENT", "columnText": "信访内容", "width": "60%", 'style': 'line-height:20px;white-space: normal; height:auto;   text-overflow: none;    overflow: auto;    word-break:break-all;  ' }, { "columnName": "VREPLYSIGN", "columnText": "回复状态", "width": "10%" }, { "columnName": "CREATEDATE", "columnText": "信息添加时间", "style": "width:10%"}];
            var queryBuilder = [{ "": ""}];
            initNewGrid(queryBuilder, ashxParam, columnInfo, addPage, editPage, detailPage);
            initQueryBuildForm("form1");
            setTimeout(function () {
                $("table").resizableColumns();
            }, 500); 
            ////回复按钮
            $("#imgReply").bind("click", function () {
                if (selectRows.length > 1) {
                    ymPrompt.errorInfo("选择的记录大于1条，只能选择一条记录！", null, null, null, null);
                    return false;
                }
                if (selectRows.length == 0) {
                    ymPrompt.errorInfo("你没有选择任何记录！请选择", null, null, null, null);
                    return false;
                }
                tb_show("回复", "../Application/TbBstDirectorLetterReply.aspx?id=" + selectRows[0] + "&keepThis=true&TB_iframe=true&height=400&width=800", false);
            });
            //推送按钮      
            $("#imgPush").bind('click', { auditParam: { "url": "../AjaxServer/Application/TbBstDirectorLetterHandler.ashx"} }, PushRecords)
        });
        
    </script>
</head>
<body>
    <div class="container">
        <div class="header">
        </div>
        <div class="main">
            <form id="form1" action="#">
            <div class="searchbar">
                <div class="leftImgDiv">
                    <img src="../Images/tab_03.gif" width="12" alt="" /></div>
                <div class="searchTitle">
                    检索</div>
                <div class="rightImgDiv">
                    <img src="../Images/tab_07.gif" width="16" alt="" />
                </div>
            </div>
            <div class="searchinfo">
                <table>
                    <tr align="center">
                        <td>
                            姓名：
                        </td>
                        <td>
                            <input id="texName" name="texName" type="text" style="width: 90px" />
                            &nbsp;
                        </td>
                        <td>
                            手机号：
                        </td>
                        <td>
                            <input id="TexPhone" name="TexPhone" type="text" style="width: 80px" />
                            &nbsp;
                        </td>
                         <td>
                            流水号：
                        </td>
                        <td>
                            <input id="TexLSH" name="TexLSH" type="text" style="width: 80px" />
                            &nbsp;
                        </td>
                        <td>
                            回复状态：
                        </td>
                        <td>
                            <select id="selReply" name="selReply" style="width: 110px">
                                <option value="">无限制</option>
                                <option value="1">已回复</option>
                                <option value="0">未回复</option>
                                <option value="2">已推送</option>
                                <option value="3">已推送办结</option>
                            </select>
                            &nbsp;
                        </td>
                        <td>
                            信息添加时间：
                        </td>
                        <td>
                            <input type="text" id="texTimeStart" name="texTimeStart" runat="server" readonly="readonly"
                                maxlength="12" onclick="WdatePicker()" style="width: 88px" />
                            至
                            <input type="text" id="texTimeEnd" name="texTimeEnd" runat="server" readonly="readonly"
                                maxlength="12" onclick="WdatePicker()" style="width: 88px" />
                        </td>
                        <td>
                            <input id="btnQuery" type="submit" value="查询" />
                        </td>
                    </tr>
                </table>
            </div>
            <div class="pagerDiv">
                <div class="leftImgDiv">
                    <img src="../Images/tab_18.gif" width="12" height="35" alt="" /></div>
                <div class="rightImgDiv">
                    <img src="../Images/tab_20.gif" width="16" height="35" alt="" />
                </div>
            </div>
            </form>
            <table class="mainTop">
                <tr>
                    <td width="12">
                        <img src="../Images/tab_03.gif" width="12" height="30" alt="" />
                    </td>
                    <td width="16">
                        <img src="../Images/tb.gif" width="16" height="16" alt="" />
                    </td>
                    <td class="tableName">
                        管理
                    </td>
                    <td align="right">
                        <span class="pointer" id="imgCreate" runat="server">
                            <img src="../Images/add.gif" width="14" height="14" alt="" />
                            新增</span> <span class="pointer" id="imgUpdate" runat="server">
                                <img src="../Images/edit.gif" width="14" height="14" alt="" />修改</span>
                        <span class="pointer" id="imgReply" runat="server">
                            <img src="../Images/edit.gif" width="14" height="14" alt="" />回复</span> <span class="pointer"
                                id="imgPush" runat="server">
                                <img src="../Images/edit.gif" width="14" height="14" alt="" />推送</span>
                        <span class="pointer" id="imgDelete" runat="server">
                            <img src="../Images/del.gif" width="14" height="14" alt="" />删除</span>
                    </td>
                    <td width="12">
                        <img src="../Images/tab_07.gif" width="12" height="30" alt="" />
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto;
                table-layout: fixed;">
                <tr>
                    <td width="8" style="background-image: url(../Images/tab_12.gif)">
                        &nbsp;
                    </td>
                    <td>
                        <table id="contentTable" width="100%" border="0" cellpadding="0" cellspacing="1"
                            bgcolor="b5d6e6" onmouseover="changeto()" onmouseout="changeback()">
                        </table>
                    </td>
                    <td width="8" style="background-image: url(../Images/tab_15.gif)">
                        &nbsp;
                    </td>
                </tr>
            </table>
            <div id="pagerDiv" class="pagerDiv">
                <div id="leftImgDiv" class="leftImgDiv">
                    <img src="../Images/tab_18.gif" width="12" height="35" alt="" /></div>
                <div id="pageCountDiv" class="pageCountDiv">
                    共有 <span id="totalCountSpan">15</span> 条记录，每页 <span id="pageCountSpan">120</span>
                    条，当前第 <span id="pageIndexSpan">1/10 页</span></div>
                <div id="pagerButtonDiv" class="pagerButtonDiv">
                    <a id="firstBut">
                        <img src="../Images/first.gif" width="37" height="15" alt="" /></a> <a id="previousBut">
                            <img src="../Images/back.gif" width="43" height="15" alt="" /></a> <a id="nextBut">
                                <img src="../Images/next.gif" width="43" height="15" alt="" /></a> <a id="lastBut">
                                    <img src="../Images/last.gif" width="37" height="15" alt="" /></a>
                </div>
                <div class="goToDiv">
                    转到第&nbsp;<input type="text" size="4" id="pagerInput" />&nbsp;页
                </div>
                <div id="goToButtonDiv" class="goToButtonDiv">
                    <a id="gotoBut">
                        <img src="../Images/go.gif" width="37" height="15" alt="" /></a>
                </div>
                <div id="rightImgDiv" class="rightImgDiv">
                    <img src="../Images/tab_20.gif" width="16" height="35" alt="" />
                </div>
            </div>
        </div>
        <div class="footer">
        </div>
    </div>
</body>
</html>
